Main Page   File List  

[e]ConfigConfirm---ReadRequest.h

00001 //   Configuation Confirm and Read Request
00002 
00003 case L2CA_Service_Union_Configure_tag: {
00004         /* Configuration Confirm. */
00005 
00006         /*Print useful message to Analysis Output window */
00007         if(IsMaster_Value())
00008                 vccPrintPdxDebugInfo("%_START_ MASTER : GBI <-received [ConfigureConfirm] from LL - return Read_Request %_END_");
00009         else
00010                 vccPrintPdxDebugInfo("%_START_ SLAVE  : GBI <-received [ConfigureConfirm] from LL - return Read_Request %_END_");
00011 
00012         /* Setup L2CAP for Data Read - Set Tag for Read_Union_Request and Contents. */
00013         L2CA_packet_out.Service.__unionTag = L2CA_Service_Union_Read_tag;
00014         L2CA_packet_out.Service.__union.Read.__unionTag = L2CA_Read_Union_Request_tag;
00015         
00016         L2CA_packet_out.SourceID = 0x02;
00017         L2CA_packet_out.Service.__union.Read.__union.Request.CID = CID; /* 0x05; */
00018         L2CA_packet_out.Service.__union.Read.__union.Request.Length = 1504;
00019                                 
00020         L2CA_Packet_Out_Post(&L2CA_packet_out);
00021 
00022         /*Print useful message to Analysis Output window */
00023         if(IsMaster_Value())
00024                 vccPrintPdxDebugInfo("%_START_ MASTER : GBI -Configure ->sent [Read_Request] to LL %_END_");
00025         else
00026                 vccPrintPdxDebugInfo("%_START_ SLAVE  : GBI -Configure ->sent [Read_Request] to LL %_END_");
00027 
00028         /* Master is configured. */
00029         configured = 1;
00030                         
00031         /*Print useful message to Analysis Output window */
00032         if(IsMaster_Value())
00033                 vccPrintPdxDebugInfo("%_START_ MASTER : GBI -Configure --- #configured = 1# %_END_");
00034         else
00035                 vccPrintPdxDebugInfo("%_START_ SLAVE  : GBI -Configure --- #configured = 1# %_END_");
00036 
00037         /* Set connectin_established = 1 after Read_Request is sent after receiving Configure Confirm!! */
00038         connection_established = 1;
00039                         
00040         /* print to analysis window */
00041         if(IsMaster_Value())
00042                 vccPrintPdxDebugInfo("%_START_ MASTER : GBI -Configure --- #connection_established = 1# %_END_");
00043         else
00044                 vccPrintPdxDebugInfo("%_START_ SLAVE  : GBI -Configure --- #connection_established = 1# %_END_");
00045 
00046         /* Only one called by Master AFTER configured and connection_established, to call GBI-Test for String !!! */
00047         /* Master would call this before Slave! Therefore, maybe the "Master" player will make the first move!!*/
00048         Set_Post(1);
00049 
00050         /* print to analysis window */
00051         if(IsMaster_Value())
00052                 vccPrintPdxDebugInfo("%_START_ MASTER : GBI -ConfigInd ->sent [Set_Post(1)] to NET %_END_");
00053         else
00054                 vccPrintPdxDebugInfo("%_START_ SLAVE  : GBI -ConfigInd ->sent [Set_Post(1)] to NET %_END_");
00055                 
00056         break;
00057 }

Generated on Sun May 12 19:02:34 2002 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002